package com.lyEducation.entities.video;

import com.lyEducation.entities.Files.FileEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "video")
public class VideoEntity extends FileEntity {
//    @Embedded
//    private FileEntity fileEntity = new FileEntity();
    /**
     *
     */
    private VideoAccessRoleEnum videoAccessRole;
    
    @Embedded
    private VideoTypeEntity videoTypeEntity;

    private double totalScore;

    public VideoAccessRoleEnum getVideoAccessRole() {
        return videoAccessRole;
    }

    public void setVideoAccessRole(VideoAccessRoleEnum videoAccessRole) {
        this.videoAccessRole = videoAccessRole;
    }

    public VideoTypeEntity getVideoTypeEntity() {
        return videoTypeEntity;
    }

    public void setVideoTypeEntity(VideoTypeEntity videoTypeEntity) {
        this.videoTypeEntity = videoTypeEntity;
    }

    @Column(name = "totalScore")
    public double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(double totalScore) {
        this.totalScore = totalScore;
    }
}
